﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000813 RID: 2067
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetSaveRaidScRsp : IMessage<GetSaveRaidScRsp>, IMessage, IEquatable<GetSaveRaidScRsp>, IDeepCloneable<GetSaveRaidScRsp>, IBufferMessage
	{
		// Token: 0x17001A36 RID: 6710
		// (get) Token: 0x06005CAA RID: 23722 RVA: 0x000F82E3 File Offset: 0x000F64E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetSaveRaidScRsp> Parser
		{
			get
			{
				return GetSaveRaidScRsp._parser;
			}
		}

		// Token: 0x17001A37 RID: 6711
		// (get) Token: 0x06005CAB RID: 23723 RVA: 0x000F82EA File Offset: 0x000F64EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetSaveRaidScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A38 RID: 6712
		// (get) Token: 0x06005CAC RID: 23724 RVA: 0x000F82FC File Offset: 0x000F64FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetSaveRaidScRsp.Descriptor;
			}
		}

		// Token: 0x06005CAD RID: 23725 RVA: 0x000F8303 File Offset: 0x000F6503
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSaveRaidScRsp()
		{
		}

		// Token: 0x06005CAE RID: 23726 RVA: 0x000F8318 File Offset: 0x000F6518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSaveRaidScRsp(GetSaveRaidScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.raidId_ = other.raidId_;
			this.isSaveData_ = other.isSaveData_;
			this.worldLevel_ = other.worldLevel_;
			this.raidTargetInfo_ = other.raidTargetInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005CAF RID: 23727 RVA: 0x000F837D File Offset: 0x000F657D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSaveRaidScRsp Clone()
		{
			return new GetSaveRaidScRsp(this);
		}

		// Token: 0x17001A39 RID: 6713
		// (get) Token: 0x06005CB0 RID: 23728 RVA: 0x000F8385 File Offset: 0x000F6585
		// (set) Token: 0x06005CB1 RID: 23729 RVA: 0x000F838D File Offset: 0x000F658D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001A3A RID: 6714
		// (get) Token: 0x06005CB2 RID: 23730 RVA: 0x000F8396 File Offset: 0x000F6596
		// (set) Token: 0x06005CB3 RID: 23731 RVA: 0x000F839E File Offset: 0x000F659E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x17001A3B RID: 6715
		// (get) Token: 0x06005CB4 RID: 23732 RVA: 0x000F83A7 File Offset: 0x000F65A7
		// (set) Token: 0x06005CB5 RID: 23733 RVA: 0x000F83AF File Offset: 0x000F65AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSaveData
		{
			get
			{
				return this.isSaveData_;
			}
			set
			{
				this.isSaveData_ = value;
			}
		}

		// Token: 0x17001A3C RID: 6716
		// (get) Token: 0x06005CB6 RID: 23734 RVA: 0x000F83B8 File Offset: 0x000F65B8
		// (set) Token: 0x06005CB7 RID: 23735 RVA: 0x000F83C0 File Offset: 0x000F65C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17001A3D RID: 6717
		// (get) Token: 0x06005CB8 RID: 23736 RVA: 0x000F83C9 File Offset: 0x000F65C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RaidTargetInfo> RaidTargetInfo
		{
			get
			{
				return this.raidTargetInfo_;
			}
		}

		// Token: 0x06005CB9 RID: 23737 RVA: 0x000F83D1 File Offset: 0x000F65D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetSaveRaidScRsp);
		}

		// Token: 0x06005CBA RID: 23738 RVA: 0x000F83E0 File Offset: 0x000F65E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetSaveRaidScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.RaidId == other.RaidId && this.IsSaveData == other.IsSaveData && this.WorldLevel == other.WorldLevel && this.raidTargetInfo_.Equals(other.raidTargetInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005CBB RID: 23739 RVA: 0x000F8460 File Offset: 0x000F6660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this.IsSaveData)
			{
				num ^= this.IsSaveData.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			num ^= this.raidTargetInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005CBC RID: 23740 RVA: 0x000F84F8 File Offset: 0x000F66F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005CBD RID: 23741 RVA: 0x000F8500 File Offset: 0x000F6700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005CBE RID: 23742 RVA: 0x000F850C File Offset: 0x000F670C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RaidId);
			}
			this.raidTargetInfo_.WriteTo(ref output, GetSaveRaidScRsp._repeated_raidTargetInfo_codec);
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.IsSaveData)
			{
				output.WriteRawTag(120);
				output.WriteBool(this.IsSaveData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005CBF RID: 23743 RVA: 0x000F85B0 File Offset: 0x000F67B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this.IsSaveData)
			{
				num += 2;
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			num += this.raidTargetInfo_.CalculateSize(GetSaveRaidScRsp._repeated_raidTargetInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005CC0 RID: 23744 RVA: 0x000F8640 File Offset: 0x000F6840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetSaveRaidScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			if (other.IsSaveData)
			{
				this.IsSaveData = other.IsSaveData;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			this.raidTargetInfo_.Add(other.raidTargetInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005CC1 RID: 23745 RVA: 0x000F86C9 File Offset: 0x000F68C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005CC2 RID: 23746 RVA: 0x000F86D4 File Offset: 0x000F68D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 56U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.RaidId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						this.raidTargetInfo_.AddEntriesFrom(ref input, GetSaveRaidScRsp._repeated_raidTargetInfo_codec);
						continue;
					}
					if (num == 96U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.IsSaveData = input.ReadBool();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040023CC RID: 9164
		private static readonly MessageParser<GetSaveRaidScRsp> _parser = new MessageParser<GetSaveRaidScRsp>(() => new GetSaveRaidScRsp());

		// Token: 0x040023CD RID: 9165
		private UnknownFieldSet _unknownFields;

		// Token: 0x040023CE RID: 9166
		public const int RetcodeFieldNumber = 7;

		// Token: 0x040023CF RID: 9167
		private uint retcode_;

		// Token: 0x040023D0 RID: 9168
		public const int RaidIdFieldNumber = 9;

		// Token: 0x040023D1 RID: 9169
		private uint raidId_;

		// Token: 0x040023D2 RID: 9170
		public const int IsSaveDataFieldNumber = 15;

		// Token: 0x040023D3 RID: 9171
		private bool isSaveData_;

		// Token: 0x040023D4 RID: 9172
		public const int WorldLevelFieldNumber = 12;

		// Token: 0x040023D5 RID: 9173
		private uint worldLevel_;

		// Token: 0x040023D6 RID: 9174
		public const int RaidTargetInfoFieldNumber = 11;

		// Token: 0x040023D7 RID: 9175
		private static readonly FieldCodec<RaidTargetInfo> _repeated_raidTargetInfo_codec = FieldCodec.ForMessage<RaidTargetInfo>(90U, EggLink.DanhengServer.Proto.RaidTargetInfo.Parser);

		// Token: 0x040023D8 RID: 9176
		private readonly RepeatedField<RaidTargetInfo> raidTargetInfo_ = new RepeatedField<RaidTargetInfo>();
	}
}
